﻿using System;
using System.Collections.Generic;
using System.Text;
using Kitware .VTK;

using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing.Design;
using System.Windows.Forms.Design;

namespace Fu3DEngine
{

   public class LookupTable
    {

       public virtual vtkLookupTable GetVtk()
       {
           return vtkLookupTable.New();
 
       }
    }


   public class LookupTableEditor:UITypeEditor
   {

       public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
       {
           IWindowsFormsEditorService DialogProvider;
           //DialogProvider = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService), IWindowsFormsEditorService);


           //LookupTableForm ltf = new LookupTableForm();



           return base.EditValue(context, provider, value);
       }

       public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
       {
           return base.GetEditStyle(context);
       }

 
   }



   public class WhiteBlueLT : LookupTable
   {
       public override vtkLookupTable GetVtk()
       {
           vtkLookupTable lt = vtkLookupTable.New();
           lt.SetHueRange(0.6, 0);
           lt.SetSaturationRange(1, 0);
           lt.SetValueRange(0.5, 1);
          
           return lt;
       }
   }

   public class SingleColorLT : LookupTable
   {

       public int MyProperty { get; set; }

       public override vtkLookupTable GetVtk()
       {
           vtkLookupTable lt = vtkLookupTable.New();
          
           return base.GetVtk();
       }
   }

}
